<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="height=device-height,width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/>
<title>登录</title>
<link href="<{$ipath}>minisite/hotel/style/hotel_login.css" type="text/css" rel="stylesheet">
<link href="<{$ipath}>public/style/alert_css.css" type="text/css" rel="stylesheet">
<script src="<{$ipath}>public/js/jquery.js"></script>
<script>
//微信去头
	window.onload = function() { 
	var ua = navigator.userAgent.toLowerCase();
	if(ua.match(/MicroMessenger/i) == "micromessenger"){
		 document.getElementById("header").style.display="none";
		 $('.div01:first').addClass('top_40');
	}
	}; 
</script>
</head>

<body>
<!--alert弹出框-->
<div class="alert_box" id="alert_box">
	<div class="alert_content">
    	<P class="alert_p" id="alert_p">我是弹出内容</P>
        <div class="alert_div">
        	<p class="quxiao" onClick="alert_quxiao();">确定</p>
        </div>
    </div>
</div>
<!--alert弹出框-->
<div class="bigbox">
	<header id="header">账号登录</header>
    <form id="formid" action="?a=login" method="post" target="hiddfrm" onSubmit="return checkform()">
        <div class="div01">
        	<p class="p01">
            	<img src="<{$ipath}>minisite/hotel/images/hotel_login_01.png" class="img01">
				<input type="text" name="username" placeholder="请输入手机号码" id="userid" class="put">
            </p>
        </div>
        <div class="div01">
        	<p class="p01">
            	<img src="<{$ipath}>minisite/hotel/images/hotel_login_02.png" class="img01">
				<input type="password" name="password" placeholder="请输入密码" id="passid" class="put">
            </p>
        </div>
        <div class="button_box">
        	<input type="hidden" name="hid" value="<{$hid}>" /><button class="button01" id="denglu" type="submit">登录</button><a href="?a=reg&hid=<{$hid}>"><button type="button">注册</button></a>
        </div>
    </form>
    <script>
//点击弹出框取消
	function alert_show(str){
		document.getElementById("alert_p").innerHTML=str;
		document.getElementById("alert_box").style.display="block";
		}
	function alert_quxiao(str){
		document.getElementById("alert_box").style.display="none";
		}
function checkform(){
	var user=document.getElementById("userid").value;
	var password=document.getElementById("passid").value;
	if(user=='' || user==null){
		alert_show('请输写手机号码！');
		return false;
	}else if(password=='' || password==null){
		alert_show('请填写密码！');
		return false;
	}
}
//点击弹出框取消
	function alert_quxiao(){
		document.getElementById("alert_box").style.display="none";
		}
</script>
<iframe width="0" height="0" name="hiddfrm" id="hiddfrm" scrolling="no" frameborder="0" style="display:none"></iframe>
</div>
</body>
</html>
